﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AmiEmuLib.AmigaMachine.AmigaCPU
{
    /// <summary>
    /// Cache address registry.
    /// </summary>
    internal static class CAARRegister
    {
        public const uint MASK = 0xFF & ~0x03;
        public const uint SHIFTED_MASK = MASK >> 2;

        public static int CacheEntry(uint a_caar)
        {
            return (int)((a_caar >> 2) & SHIFTED_MASK);
        }
    }
}
